<template>
  <div>
    <div class="recommendtitle">周末去那</div>
    <div class="boxlist" v-for="item of weekendList" :key="item.id">
      <img :src="item.imgUrl" alt="">
      <div class="productprops">
        <span class="title">{{item.title}}</span>
        <span class="des">{{item.desc}}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'weekend',
  props: {
    weekendList: Array
  }
}
</script>

<style lang="stylus" scoped>
  @import "~@/assets/style/varible.styl"
.recommendtitle
  line-height .8rem
  font-size .3rem
  background  $color-black2
  padding-left .1rem
 .boxlist
    box-sizing border-box
    width: 100%
    height auto
    overflow hidden
    padding 0 0 .2rem 0
    img
      display block
      float left
      width 100%
      height auto
    .productprops
      width 100%
      height auto
      overflow hidden
      span
        padding 0 .2rem
      .title
        display block
        width 100%
        height .6rem
        line-height .6rem
        font-size .34rem
        color $coler-black
      .des
        display block
        width 100%
        height .6rem
        line-height .6rem
        font-size .28rem
        color $color-black3
        overflow hidden
        white-space nowrap
        text-overflow ellipsis
</style>
